const proxyObj = {ws: false}
proxyObj['/'] = {
  target: 'http://localhost:8001',
  changeOrigin: true,
  pathRewrite: {
    '^/': ''
  }
}
// 跨域配置
module.exports = {
  devServer: {                //记住，别写错了devServer//设置本地默认端口  选填
    host: 'localhost',
    port: 8001,
    proxy: proxyObj
  }
}
